package com.example.hallserver;

import com.example.common.User;
import com.example.hallserver.error.UserClientError;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Created on 2020/2/17.
 *
 * @author Grak
 * @since 1.0
 */
@FeignClient(name = "hallServer",fallback = UserClientError.class)
public interface UserClient {

    @GetMapping("/getUser")
     String getUser();

    @GetMapping("/getUserOnly")
    User getUserOnly();

}
